#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@File ：FavoriteController.py
@Author ：zqy
@Email : zqingy@work@163.com 
@note: 收藏
"""

from flask_restx import Namespace

from application.Parser.FavoriteParser import FavoriteValidator
from application.controller import register_crud_model
from application.logic.FavoriteLogic import FavoriteLogic

favorite_ns = Namespace('favorite', description='收藏模块')
favorite_parser: FavoriteValidator = FavoriteValidator
register_crud_model(
    ns=favorite_ns,
    logic_cls=FavoriteLogic,
    parser=favorite_parser,
    route="",
    id_type="int",
    include_operations=["get", "list", "put", "delete"]
)
